//
//  HLPickView.h
//  礼管家
//
//  Created by tim on 16/3/5.
//  Copyright © 2016年 tim. All rights reserved.
//

#import <UIKit/UIKit.h>
@class ZHPickView;
typedef void (^HLPickViewSubmit)(NSString*,NSInteger );
@interface ZHPickView : UIView<UIPickerViewDelegate>
- (void)setDateViewWithTitle:(NSString *)title withLastTime:(NSString*)lastTime;

/**
 展示一列数据

 @param items 数据源数组, 对象模型数组
 @param title 标题 可以为空
 @param key 要显示的模型的成员属性的键值
 */
- (void)setDataViewWithItem:(NSArray *)items title:(NSString *)title objectKey:(NSString *)key;
- (void)showPickView:(UIViewController *)vc;
- (void)showPickViewOnWindow;
@property(nonatomic,copy)HLPickViewSubmit block;
/** 取消的回调 */
@property(nonatomic, strong) void (^cancelBlock)();
@property(nonatomic, strong) void (^objectArrSubmmitBlock)(id selectObj);
@end
